﻿Ext.define('I2R.store.roles', {
    extend: 'Ext.data.Store',
    autoLoad: false,
    model: 'I2R.model.role',
    proxy: {
        type: 'ajax',
        url: '../User/ListRoles',
        reader: {
            record: 'Role',
            idProperty: 'Id',
            totalProperty: 'TotalItems',
            type: 'xml' 
        }
    },
    autoLoad: true
});